package com.zpb.framework.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zpb.framework.domain.entity.Menu;
import com.zpb.framework.domain.vo.MenuTreeSelectVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description:
 * @Author: zhaopengbo
 * @Date: 2025/9/11
 */
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {
    public List<String> selectMenuPermsByUserId(Long userId);
    public List<Menu> selectMenuByUserId(Long userId);
    public List<Menu> selectAllMenu();
    public List<MenuTreeSelectVo> selectMenuTree(Long userId);
    public List<MenuTreeSelectVo> selectMenuTreeByRoleId(Long roleId);
}
